Skip to main content

Permutations

Permutations[list] generates a list of all possible permutations of the elements in list. 

Permutations[list,n] gives all permutations containing at most n elements.

Permutations[list,{n}] gives all permutations containing exactly n elements.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.